#ifndef _UART_H_
#define _UART_H_

#include "stm32f4xx.h"
#include <string.h>
#include <stdio.h>

#include "FreeRTOS.h"

//串口接收数据结构体
typedef struct
{
	unsigned int len;
	unsigned char buf[256];
}_Data_Rx;

extern _Data_Rx PC_rx;
extern _Data_Rx Bluetooth_rx;

void Uart3_to_BT_Init(u32 bound);
void Uart1_to_PC_Init(u32 bound);
void Uart5_to_Ultra_Init(u32 bound);

void Uart3_to_BT_tx(uint8_t *data,uint16_t size);
void Uart1_to_PC_tx(uint8_t *data,uint16_t size);

void ReceiveUltraData(void);
void SendStopflag(void);

#endif
